package com.nidu.demo.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.role.mapper.dataobject.RoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface RoleMapper extends BaseMapper<RoleDO> {

    @Select("SELECT * FROM sys_role WHERE code = #{code} LIMIT 1")
    RoleDO selectByCode(String code);
}